<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Strelitzia-分享动态</title>
    <style>
        /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
        ::-webkit-scrollbar {
            width: 5px;
            height: 5px;
        }

        /*定义滚动条轨道 内阴影+圆角*/
        ::-webkit-scrollbar-track {
            border-radius: 10px;
        }

        /*定义滑块 内阴影+圆角*/
        ::-webkit-scrollbar-thumb {
            border-radius: 10px;
            -webkit-box-shadow: inset 0 0 6px 6px rgba(0, 0, 0, 0.3);
            background-color: rgba(255, 255, 255, 0.5);
        }

        .backdrop {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-image: url("/images/demobg.jpg");
        }

        .content {
            border-radius: 5px;
            width: 80%;
            background: #FFFFFF;
            margin: 20px auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        .content_text {
            font-size: 20px;
            font-weight: bold;
            word-wrap: break-word;
            width: 100%;
        }
        .content_time {
            margin-top: 10px;
            font-size: 15px;
            font-weight: bold;
            color: #cdcdcd;
        }
        .ccb_pic_box{
            word-wrap: break-word;
            width: 100%;
        }
        .pic_box_item {
            height: 200px;
            margin-top: 20px;
            float: left;
            margin-right: 20px;
            background-color: #f1f2f5;
        }

        .pic_box_item .small_pic {
            max-height: 100%;
            max-width: 100%;
            border-radius: 10px;
        }
    </style>
</head>
<body>
<div class="backdrop">
    <div class="content">
        <div class="content_text" th:text="${dynamic.content}">
        </div>
        <div class="content_time" th:text="${#dates.format(dynamic.time, 'yyyy年MM月dd日 HH点mm分')}">
        </div>
        <div class="ccb_pic_box" th:if="${dynamic.src!=null}">
            <div class="pic_box_item" th:each="item : ${dynamic.src}">
                <img class="small_pic" th:src="'http://localhost:913/res/'+${item}" alt="">
            </div>
        </div>
    </div>
</div>
</body>
</html>